//
//  YZCNewsWebViewViewController.m
//  LOLerBox
//
//  Created by 杨智超 on 16/1/21.
//  Copyright © 2016年 蓝鸥科技. All rights reserved.
//

#import "YZCNewsWebViewViewController.h"
#import "YZCConsultModel.h"
@interface YZCNewsWebViewViewController ()

@end

@implementation YZCNewsWebViewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    // Do any additional setup after loading the view.
    


}

- (void)setUrl:(NSString *)url
{
    if (_url != url) {
        _url = url;
    }
    UIWebView *wv = [[UIWebView alloc]initWithFrame:self.view.bounds];
    [self.view addSubview:wv];
    /* 加载网址 */
    NSLog(@"%@", self.url);
    NSString *url1 = [NSString stringWithFormat:@"http://lol.zhangyoubao.com/mobiles/item/%@?v_=400704&token=126c55cd0ab22bb262c5768fc37dc73790&user_id=19460314&size=middle&t=1453336824", self.url];
    
    [wv loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url1]]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
